package com.example.demo.lishitihuan;

/**
 * 士兵
 */
public class Soldier {

    private AbstarctGun gun;

    public void setGun(AbstarctGun gun){
        this.gun = gun;
    }

    public void killEmemy(){
        System.out.println("士兵开始射杀敌人...");
        gun.shoot();
    }
}
